package com.gt.web.srv.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;
import lombok.Getter;
import lombok.ToString;

/**
 * 栏目信息
 * @TableName biz_article
 */
@TableName(value ="biz_article")
@Data
@ToString(callSuper=true)
public class Article extends BaseAuto {
    /**
     * 文章ID
     */
    @TableId(value = "article_id", type = IdType.AUTO)
    private Long articleId;

    /**
     * 文章标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 所属类目
     */
    @TableField(value = "column_id")
    private Long columnId;

    /**
     * 社区
     */
    @TableField(value = "community_id")
    private Long communityId;
    private String communityName;

    /**
     * 文件内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 图片地址
     */
    @TableField(value = "img_url")
    private String imgUrl;

    /**
     * 文章阅读数
     */
    @TableField(value = "visit")
    private Integer visit;

    /**
     * 文章分享数
     */
    @TableField(value = "shares")
    private Integer shares;

    /**
     * 文章有效阅读数
     */
    @TableField(value = "times")
    private Integer times;

    /**
     * 阅读文章获取积分数
     */
    @TableField(value = "score")
    private Integer score;

    /**
     * 状态（0正常 1停用）
     */
    @TableField(value = "status")
    private String status;

    /**
     * 是否置顶
     */
    @TableField(value = "is_top")
    private Integer isTop;

    /**
     * 有效期:开始
     */
    @TableField(value = "expire_start")
    private LocalDateTime expireStart;

    /**
     * 有效期结束
     */
    @TableField(value = "expire_end")
    private LocalDateTime expireEnd;
    private Integer isCarousel;

    /**
     * 文章类型
     */
    private Integer type;
    /**
     * 文章外链
     */
    private String outLink;
    private Integer scope;
    private String source;

}